import {
  request
} from "./request"
// 用户相关

export const editgemomemberuser = (params) => {
  return request({
    url: '/system/gemouser/editgemomemberuser',
    data: params,
    method: "POST"
  })
}

export const getgemomemberuser = (params) => {
  return request({
    url: '/system/gemouser/getgemomemberuser',
    method: "GET",
    data: params,
  })
}

export const getmemberinfo = () => {
  return request({
    url: '/system/gemouser/getmemberinfo',
    method: "GET"
  })
}

export const getMemberLevel = () => {
  return request({
    url: '/system/gemouser/getMemberLevel',
    method: "GET"
  })
}

export const getMyActivityList = (params) => {
  return request({
    url: '/system/gemo/activity/getMyActivityList',
    data: params,
    method: "GET"
  })
}


/** 获取订单 */
export const getOrderList = (params) => {
  return request({
    url: '/system/gemouser/getOrderList',
    data: params,
    method: "GET"
  })
}

export const MyOrderTabList = [
  {
    id: 0,
    name: "全部"
  },
  {
    id: 1,
    name: 'GEMO甄选'
  },
  {
    id: 2,
    name: '积分商城'
  },
  {
    id: 3,
    name: '限时复购派对'
  },
]
export const config = {
  pointlimit: 100000 //会员最高升级积分
}

export const MemberLevelConfigs = [
  {
    level: 0,
    name: "金茉星粉",
    bgColor1: "#fff",
    bgColor2: "#c7c9d7",
    fontColor: "#A4A9C1",
    rights: 8,
    tipShow: false,
    nextPoint: 5000
  },
  {
    level: 1,
    name: "奢宠金粉",
    bgColor1: "#fff",
    bgColor2: "#9895BC",
    fontColor: "#8986A5",
    rights: 10,
    tipShow: true,
    point: 5000,
    nextPoint: 10000
  },
  {
    level: 2,
    name: "至臻金粉",
    bgColor1: "#F1F0FC",
    bgColor2: "#6E6D9D",
    fontColor: "#605F89",
    rights: 14,
    tipShow: true,
    point: 10000,
    nextPoint: 15000
  },
  {
    level: 3,
    name: "鎏光金粉",
    bgColor1: "#ECECFC",
    bgColor2: "#28256C",
    fontColor: "#413F79",
    rights: 16,
    tipShow: true,
    point: 15000
  },
]

// export const enum MemberLevel {
//   NO_CONSUMPTION = 0,
//   GLORIOUS_GOLD = 1,
//   LUXURY_GOLD = 2,
//   SUPREME_GOLD = 3
// }


/** TODO fakedata 订单数据 */
export const fakeOrdersData = {
  "code": 200,
  "success": true,
  "message": "success",
  "data": {
    "list": [
      {
        "isDel": 0,
        "channelCode": 21,
        "channelName": "淘宝",
        "orderId": "9388126641298944",
        "consumerShop": "GEMO金茉旗舰店",
        "orderCreateDate": "2024-10-09 19:45:28",
        "orderDetailList": [
          {
            "orderDetailId": "2318850768062586184",
            "productAttr": "颜色分类:4R胶原机",
            "productName": "【上新价】【时装周同款】GEMO金茉4R胶原机超频胶原光美容仪脸部胶原填充",
            "productNum": 1,
            "productPic": "https://img.alicdn.com/bao/uploaded/i4/2214385068079/O1CN01emd4H029YEoRV2WSY_!!2214385068079.jpg",
            "productPrice": "999",
            "productTotalPrice": "909"
          }
        ],
        "orderNum": "2318850768062586184",
        "orderStatus": 4,
        "thirdShopperId": "AAFUAU4pAAB5HSkAAaleH4hw",
        "totalPrice": "909"
      },
      {
        "isDel": 0,
        "channelCode": 21,
        "channelName": "淘宝",
        "orderId": "9336039708444160",
        "consumerShop": "GEMO金茉旗舰店",
        "orderCreateDate": "2024-09-30 15:01:30",
        "orderDetailList": [
          {
            "orderDetailId": "2309800947303586184",
            "productAttr": "颜色分类:【院线级胶原填充科技】金茉4R胶原机",
            "productName": "【胶原网重组】GEMO金茉4R胶原机射频美容仪脸部胶原填充",
            "productNum": 1,
            "productPic": "https://img.alicdn.com/bao/uploaded/i3/2214385068079/O1CN01VHh8W929YEngsGL0k_!!2-item_pic.png",
            "productPrice": "10199",
            "productTotalPrice": "9209"
          }
        ],
        "orderNum": "2309800947303586184",
        "orderStatus": 4,
        "thirdShopperId": "AAFUAU4pAAB5HSkAAaleH4hw",
        "totalPrice": "9209"
      }
    ],
    "nextCursor": "9336039708444160"
  }
}
// export const fakeOrdersData = {
//   "total": 1,
//   "size": 1,
//   "nextCursor": null,
//   "list": [
//     {
//       "thirdShopperId": "shopper_123",
//       "orderId": 1000000001,
//       "channelCode": "channel_1",
//       "channelName": "Channel 1",
//       "orderNum": "ORD-1000000001",
//       "orderStatus": 2,
//       "orderCreateDate": "2024-10-23T10:15:30Z",
//       "totalPrice": "75.50",
//       "consumerShop": "Beauty Shop A",
//       "orderDetailList": [
//         {
//           "orderDetailId": "detail_1003",
//           "productName": "超持久防水睫毛膏（深邃黑色）",
//           "productPic": "https://gemo-applet.oss-cn-hangzhou.aliyuncs.com/mp/one/images/my/test-order.png",
//           "productAttr": "防水配方，适合日常和特殊场合",
//           "productNum": 1,
//           "productPrice": 28,
//           "productTotalPrice": 28
//         },
//         {
//           "orderDetailId": "detail_1004",
//           "productName": "焕彩修复面霜（适合干性肌肤）啊啊啊啊",
//           "productPic": "https://gemo-applet.oss-cn-hangzhou.aliyuncs.com/mp/one/images/my/test-order.png",
//           "productAttr": "深层滋养，持久保湿，适用于秋冬季节",
//           "productNum": 1,
//           "productPrice": 65,
//           "productTotalPrice": 65
//         },
//         {
//           "orderDetailId": "detail_1005",
//           "productName": "经典香水（优雅花香调）",
//           "productPic": "https://gemo-applet.oss-cn-hangzhou.aliyuncs.com/mp/one/images/my/test-order.png",
//           "productAttr": "清新花香，适合日常及晚宴使用",
//           "productNum": 1,
//           "productPrice": 45,
//           "productTotalPrice": 45
//         },
//         {
//           "orderDetailId": "detail_1006",
//           "productName": "天然植物护手霜（薰衣草香型）",
//           "productPic": "https://gemo-applet.oss-cn-hangzhou.aliyuncs.com/mp/one/images/my/test-order.png",
//           "productAttr": "含有天然植物提取物，舒缓干燥肌肤啊啊啊啊啊啊啊啊啊啊啊",
//           "productNum": 2,
//           "productPrice": 12,
//           "productTotalPrice": 24
//         },
//         {
//           "orderDetailId": "detail_1007",
//           "productName": "多功能修容盘（包含高光与阴影）",
//           "productPic": "https://gemo-applet.oss-cn-hangzhou.aliyuncs.com/mp/one/images/my/test-order.png",
//           "productAttr": "适合各种肤色，轻松打造立体脸型",
//           "productNum": 1,
//           "productPrice": 38,
//           "productTotalPrice": 38
//         },
//         {
//           "orderDetailId": "detail_1008",
//           "productName": "多功能修容盘（包含高光与阴影）",
//           "productPic": "https://gemo-applet.oss-cn-hangzhou.aliyuncs.com/mp/one/images/my/test-order.png",
//           "productAttr": "适合各种肤色，轻松打造立体脸型",
//           "productNum": 1,
//           "productPrice": 38,
//           "productTotalPrice": 38
//         }
//       ]
//     }
//   ]
// }



/** 订单接口返回格式 */
// class OrderData{
//   /** 总条数 不包含游标条件的总数 */
//   total: Number;
//   /** 每页条数 */
//   size:Number;
//   /** 游标 当前页的最后一条订单ID */
//   nextCursor:Number;
//   /** 数据集 */
//   list:OrderListItem[]
// }

// class OrderListItem {
//   thirdShopperId	三方会员id		String
//   orderId	订单ID		Long
//   channelCode	渠道Code		String
//   channelName	渠道名称		Stirng
//   orderNum	订单编号		String
//   orderStatus	订单状态		int
//   orderCreateDate	创建时间		date
//   totalPrice	订单总额		BigDecimal
//   consumerShop	消费店铺		String
//   /** 订单详情集合 */
//   orderDetailList:Order[]
// }

// class Order{
//   orderDetailId	订单详情ID		String
//   productName	商品名称		String
//   productPic	商品图片		String
//   productAttr	商品规格		String
//   productNum	商品数量		int
//   productPrice	商品单价	int
//   productTotalPrice 商品总价	int
// }